package com.woniuxy.carlife.Param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @ClassName: StoreUserParam
 * @ Description:（获取前端传入登录账号和密码）
 * @author: yanzhongliang     
 * @date: Update in 16:08 2021/4/9
 */
@Data
@ApiModel("登录所需参数")
public class StoreUserParam {

    @NotNull(message = "门店账号不能为空")
    @Size(min = 5, max = 11, message = "门店账号长度须在5-11之间")
    @ApiModelProperty(value = "门店账号",dataType = "String",example = "646161")
    private String storeUserAccount;

    @NotNull(message = "门店密码不能为空")
    @Max(value = 11, message = "门店密码最大长度为11")
    @ApiModelProperty(value = "门店密码",dataType = "String",example = "167461644")
    private String storeUserPassword;

//    @ApiModelProperty(value = "记住我",dataType = "Boolean",required = true)
//    private Boolean checked;
}
